/**
 * ch01.console.write.js
 * 向控制台输出组合控制键
 * 
 */

console.info("Node.js - readline.write()Usage");
var readline = require("readline");
var rl = readline.createInterface({
    input : process.stdin,
    output : process.stdout
});

rl.write("delete me! Wait for 3 seconds...");
var timeoutLength = 3*1000;

var timeout = setTimeout(function(){
    rl.write(null,{ctrl:true,name:'u'});
},timeoutLength);
